package org.csu.mypetstore.service;

import org.csu.mypetstore.common.CommonResponse;
import org.csu.mypetstore.domain.Account;
import org.csu.mypetstore.domain.Cart;
import org.csu.mypetstore.domain.SignOn;

import java.util.List;

public interface AccountService {
    // 获得用户购物车信息
    public CommonResponse<List<Cart>> getMyCartByUserid(String userid);

    // 获取登录用户对象
    public CommonResponse<Object> login(SignOn user);

    public CommonResponse<Object> getAccountBySignOn(SignOn signOn);

    public String getErrorMessage();

    public CommonResponse<Object> register(String username, String password);

    public CommonResponse<Object> improveInfo(Account account);

    public CommonResponse<Object> changePassword(String username, String old_password, String new_password);

}
